package com.antdesignbackend.backend.activiti.processstay.service.impl;


import com.antdesignbackend.backend.activiti.processstay.entity.entityVo.ProcessstayVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.activiti.processstay.mapper.ProcessstayMapper;
import com.antdesignbackend.backend.activiti.processstay.entity.Processstay;
import com.antdesignbackend.backend.activiti.processstay.service.ProcessstayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class ProcessstayServiceImpl extends ServiceImpl<ProcessstayMapper, Processstay> implements ProcessstayService {

    @Autowired
    ProcessstayMapper processstayMapper;

    @Override
    public List<ProcessstayVo> search(QueryWrapper<ProcessstayVo> queryWrapper, Page<ProcessstayVo> page) {
        return processstayMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ProcessstayVo> queryWrapper) {
        return processstayMapper.count(queryWrapper);
    }
}
